package com.situ.onlinebookstore.common.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@ToString
public class Goods implements Serializable {
    private Integer id;
    private String name;
    private String dscp;
    private BigDecimal price;
    private BigDecimal markPrice;
    private BigDecimal purchasePrice;
    private String author;
    private String press;
    private Integer count;
    private Integer recom;
    private Integer categoryId; //分类ID
    private Integer status;

    //分类 单向一对一
    private Category category; //分类的全部信息

    //图片 单向一对多
    private List<GoodsPic> pics; //商品对应的图片

}
